package data;

import java.util.ArrayList;
import java.util.List;

/**
 * 因为GSon的使用，使用该类可以直接序列化成带list名字的json字符串
 */
public class ServerInformationList {
    private List<ServerShortInfomation> serverShortInformationList = new ArrayList<>();

    public void addServerShortInformation(ServerShortInfomation i) {
        serverShortInformationList.add(i);
    }

    public int size() {
        return serverShortInformationList.size();
    }

    public ServerShortInfomation get(int i) {
        return serverShortInformationList.get(i);
    }
}
